home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / PInterfaces / ConnectionTools.p < prev    next >
Encoding:
Text File  |  1997-08-12  |  3.4 KB  |  146 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        ConnectionTools.p
  3.  
  4.      Contains:    Communications Toolbox Connection Tools Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.0.1
  8.  
  9.      Copyright:    © 1988-1997 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. }
  18. {$IFC UNDEFINED UsingIncludes}
  19. {$SETC UsingIncludes := 0}
  20. {$ENDC}
  21.  
  22. {$IFC NOT UsingIncludes}
  23.  UNIT ConnectionTools;
  24.  INTERFACE
  25. {$ENDC}
  26.  
  27. {$IFC UNDEFINED __CONNECTIONTOOLS__}
  28. {$SETC __CONNECTIONTOOLS__ := 1}
  29.  
  30. {$I+}
  31. {$SETC ConnectionToolsIncludes := UsingIncludes}
  32. {$SETC UsingIncludes := 1}
  33.  
  34. {$IFC UNDEFINED __CONDITIONALMACROS__}
  35. {$I ConditionalMacros.p}
  36. {$ENDC}
  37. {$IFC UNDEFINED __DIALOGS__}
  38. {$I Dialogs.p}
  39. {$ENDC}
  40. {$IFC UNDEFINED __CONNECTIONS__}
  41. {$I Connections.p}
  42. {$ENDC}
  43.  
  44.  
  45. {$PUSH}
  46. {$ALIGN MAC68K}
  47. {$LibExport+}
  48.  
  49.  
  50. CONST
  51.                                                                 {  messages for DefProc  }
  52.     cmInitMsg                    = 0;
  53.     cmDisposeMsg                = 1;
  54.     cmSuspendMsg                = 2;
  55.     cmResumeMsg                    = 3;
  56.     cmMenuMsg                    = 4;
  57.     cmEventMsg                    = 5;
  58.     cmActivateMsg                = 6;
  59.     cmDeactivateMsg                = 7;
  60.     cmIdleMsg                    = 50;
  61.     cmResetMsg                    = 51;
  62.     cmAbortMsg                    = 52;
  63.     cmReadMsg                    = 100;
  64.     cmWriteMsg                    = 101;
  65.     cmStatusMsg                    = 102;
  66.     cmListenMsg                    = 103;
  67.     cmAcceptMsg                    = 104;
  68.     cmCloseMsg                    = 105;
  69.     cmOpenMsg                    = 106;
  70.     cmBreakMsg                    = 107;
  71.     cmIOKillMsg                    = 108;
  72.     cmEnvironsMsg                = 109;                            {  new connection tool messages for ctb 1.1  }
  73.     cmNewIOPBMsg                = 110;
  74.     cmDisposeIOPBMsg            = 111;
  75.     cmGetErrorStringMsg            = 112;
  76.     cmPBReadMsg                    = 113;
  77.     cmPBWriteMsg                = 114;
  78.     cmPBIOKillMsg                = 115;
  79.  
  80.                                                                 {     messages for validate DefProc     }
  81.     cmValidateMsg                = 0;
  82.     cmDefaultMsg                = 1;
  83.  
  84.                                                                 {     messages for Setup DefProc     }
  85.     cmSpreflightMsg                = 0;
  86.     cmSsetupMsg                    = 1;
  87.     cmSitemMsg                    = 2;
  88.     cmSfilterMsg                = 3;
  89.     cmScleanupMsg                = 4;
  90.  
  91.                                                                 {     messages for scripting defProc     }
  92.     cmMgetMsg                    = 0;
  93.     cmMsetMsg                    = 1;
  94.  
  95.                                                                 {     messages for localization defProc     }
  96.     cmL2English                    = 0;
  97.     cmL2Intl                    = 1;
  98.  
  99.                                                                 {  private data constants  }
  100.     cdefType                    = 'cdef';                        {  main connection definition procedure  }
  101.     cvalType                    = 'cval';                        {  validation definition procedure  }
  102.     csetType                    = 'cset';                        {  connection setup definition procedure  }
  103.     clocType                    = 'cloc';                        {  connection configuration localization defProc  }
  104.     cscrType                    = 'cscr';                        {  connection scripting defProc interfaces  }
  105.     cbndType                    = 'cbnd';                        {  bundle type for connection  }
  106.     cverType                    = 'vers';
  107.  
  108.  
  109. TYPE
  110.     CMDataBufferPtr = ^CMDataBuffer;
  111.     CMDataBuffer = RECORD
  112.         thePtr:                    Ptr;
  113.         count:                    LONGINT;
  114.         channel:                CMChannel;
  115.         flags:                    CMFlags;
  116.     END;
  117.  
  118.     CMCompletorRecordPtr = ^CMCompletorRecord;
  119.     CMCompletorRecord = RECORD
  120.         async:                    BOOLEAN;
  121.         filler:                    SInt8;
  122.         completionRoutine:        ConnectionCompletionUPP;
  123.     END;
  124.  
  125.     CMCompletorPtr                        = ^CMCompletorRecord;
  126. {    Private Data Structure    }
  127.     CMSetupStructPtr = ^CMSetupStruct;
  128.     CMSetupStruct = RECORD
  129.         theDialog:                DialogPtr;
  130.         count:                    INTEGER;
  131.         theConfig:                Ptr;
  132.         procID:                    INTEGER;                                {  procID of the tool     }
  133.     END;
  134.  
  135.     CMSetupPtr                            = ^CMSetupStruct;
  136. {$ALIGN RESET}
  137. {$POP}
  138.  
  139. {$SETC UsingIncludes := ConnectionToolsIncludes}
  140.  
  141. {$ENDC} {__CONNECTIONTOOLS__}
  142.  
  143. {$IFC NOT UsingIncludes}
  144.  END.
  145. {$ENDC}
  146.